Skip to content

ARROW-15006: [Python][Doc] Add five more numpydoc checks to CI#15214

Merged
wjones127 merged 23 commits into
apache:masterfrom
amoeba:arrow-15006-more-checks
Jan 6, 2023
Merged

ARROW-15006: [Python][Doc] Add five more numpydoc checks to CI#15214
wjones127 merged 23 commits into
apache:masterfrom
amoeba:arrow-15006-more-checks

Conversation

@amoeba

@amoeba amoeba commented Jan 6, 2023

Copy link
Copy Markdown
Member

This adds the numpydoc checks GL10, PR04, PR05, RT03, and YD01 to CI and fixes the associated issues in docstrings.

These checks are:

  • GL10: reST directives {directives} must be followed by two colons
  • PR04: Parameter "{param_name}" has no type
  • PR05: Parameter "{param_name}" type should not finish with "."
  • RT03: Return value has no description
  • YD01: No Yields section found

https://numpydoc.readthedocs.io/en/latest/validation.html

@github-actions

github-actions Bot commented Jan 6, 2023

Copy link
Copy Markdown

@amoeba

amoeba commented Jan 6, 2023

Copy link
Copy Markdown
Member Author

Hey @jorisvandenbossche, since you reviewed the last numpydoc PR, would you want to take a look here? This adds five of the ten checks we discussed (Jira, Google Sheet) adding and the diff is relatively straightforward compared to the last one.

@wjones127 wjones127 self-requested a review January 6, 2023 17:11
Comment thread python/pyarrow/_dataset.pyx Outdated
Comment thread python/pyarrow/_dataset_parquet.pyx Outdated
Comment thread python/pyarrow/_dataset_parquet.pyx Outdated
@amoeba

amoeba commented Jan 6, 2023

Copy link
Copy Markdown
Member Author

Thanks for the review @wjones127. This is ready for another look.

@wjones127 wjones127 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Saw a couple more instances of description in the type spot.

Also not going to correct the periods missing from end of description, since we aren't planning on enforcing PR09 and RT05, but did include that correct in my examples. (I know Joris has asked this of my PRs in the past.)

Comment thread python/pyarrow/ipc.pxi Outdated
Comment thread python/pyarrow/ipc.pxi Outdated
Comment thread python/pyarrow/ipc.pxi Outdated
Comment thread python/pyarrow/ipc.pxi Outdated
Comment thread python/pyarrow/parquet/core.py Outdated
Comment thread python/pyarrow/parquet/core.py Outdated
amoeba and others added 4 commits January 6, 2023 12:58
Co-authored-by: Will Jones <willjones127@gmail.com>
Co-authored-by: Will Jones <willjones127@gmail.com>
Co-authored-by: Will Jones <willjones127@gmail.com>
Co-authored-by: Will Jones <willjones127@gmail.com>
amoeba and others added 2 commits January 6, 2023 12:58
Co-authored-by: Will Jones <willjones127@gmail.com>
Co-authored-by: Will Jones <willjones127@gmail.com>
@amoeba

amoeba commented Jan 6, 2023

Copy link
Copy Markdown
Member Author

Thanks @wjones127, those look good. The help is appreciated :)

@wjones127 wjones127 merged commit 14ec80f into apache:master Jan 6, 2023
@ursabot

ursabot commented Jan 7, 2023

Copy link
Copy Markdown

Benchmark runs are scheduled for baseline = a580f27 and contender = 14ec80f. 14ec80f is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
Conbench compare runs links:
[Finished ⬇️0.0% ⬆️0.0%] ec2-t3-xlarge-us-east-2
[Failed ⬇️0.84% ⬆️0.19%] test-mac-arm
[Finished ⬇️3.06% ⬆️0.0%] ursa-i9-9960x
[Finished ⬇️0.1% ⬆️0.0%] ursa-thinkcentre-m75q
Buildkite builds:
[Finished] 14ec80f1 ec2-t3-xlarge-us-east-2
[Failed] 14ec80f1 test-mac-arm
[Finished] 14ec80f1 ursa-i9-9960x
[Finished] 14ec80f1 ursa-thinkcentre-m75q
[Finished] a580f271 ec2-t3-xlarge-us-east-2
[Finished] a580f271 test-mac-arm
[Finished] a580f271 ursa-i9-9960x
[Finished] a580f271 ursa-thinkcentre-m75q
Supported benchmarks:
ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python, R. Runs only benchmarks with cloud = True
test-mac-arm: Supported benchmark langs: C++, Python, R
ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java

@ursabot

ursabot commented Jan 7, 2023

Copy link
Copy Markdown

['Python', 'R'] benchmarks have high level of regressions.
ursa-i9-9960x

EpsilonPrime pushed a commit to EpsilonPrime/arrow that referenced this pull request Jan 10, 2023
…e#15214)

This adds the numpydoc checks GL10, PR04, PR05, RT03, and YD01 to CI and fixes the associated issues in docstrings.

These checks are:

- GL10: reST directives {directives} must be followed by two colons
- PR04: Parameter "{param_name}" has no type
- PR05: Parameter "{param_name}" type should not finish with "."
- RT03: Return value has no description
- YD01: No Yields section found

https://numpydoc.readthedocs.io/en/latest/validation.html

Lead-authored-by: Bryce Mecum <petridish@gmail.com>
Co-authored-by: Will Jones <willjones127@gmail.com>
Signed-off-by: Will Jones <willjones127@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants